package com.serviceprovider.business.utility;

//~--- non-JDK imports --------------------------------------------------------

import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.userdetails.hierarchicalroles.RoleHierarchy;
import org.springframework.security.userdetails.hierarchicalroles.UserDetailsWrapper;

public class CustomUserDetailsWrapper extends UserDetailsWrapper {
    private Object userInfo;

    public CustomUserDetailsWrapper(UserDetails userDetails, RoleHierarchy roleHierarchy) {
        super(userDetails, roleHierarchy);
    }

    public CustomUserDetailsWrapper(UserDetails userDetails, RoleHierarchy roleHierarchy, Object userInfo) {
        super(userDetails, roleHierarchy);
        this.userInfo = userInfo;
    }

    public Object getUserInfo() {
        return userInfo;
    }
}



